<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>React Suite CDN example</title>
  <script src="https://cdn.bootcss.com/react/15.4.1/react.js"></script>
  <script src="https://cdn.bootcss.com/react/15.4.1/react-dom.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/rsuite/3.2.9/rsuite.min.js"></script>
  <script src="https://cdn.bootcss.com/babel-core/5.8.38/browser.js"></script>
  <link href="https://cdn.jsdelivr.net/npm/rsuite@3.2.9/dist/styles/rsuite.min.css" rel="stylesheet">
</head>

<body>
  <div id="example"></div>
  <script type="text/babel">
    const { Button } = rsuite;
    const Hello = React.createClass({
      getDefaultProps: function() {
        return {
          text: 'Hello, world'
        }
      },
      onclick: function(e) {
        console.log('click', e)
      },
      render: function() {
        return (
          <div style={{ padding:20 }}>
            <Button onClick={this.onclick}> {this.props.text} </Button>
          </div>
        ); 
      }
    })
    ReactDOM.render(<Hello /> , document.getElementById('example'));
  </script>

</body>

</html>